package com.biz.primus.ms.order.dao.po.embeddable;

import com.biz.primus.model.order.enums.InvoiceType;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * 订单发票,废弃
 *
 * @author Tiger Feng
 * @date 2017年10月28日
 */
@Data
@Embeddable
public class OrderInvoice {
    /**
     * 发票类型（none：不开发票、personal：个人、company：公司）
     */
    @Enumerated(EnumType.STRING)
    @Column(length = 16, nullable = false)
    private InvoiceType invoiceType = InvoiceType.none;
    /**
     * 发票抬头
     */
    @Column(length = 250)
    private String invoiceTitle = "";
    /**
     * 纳税人识别号
     */
    @Column(length = 64)
    private String taxPayerNumber;
    /**
     * 注册地址
     */
    @Column(length = 250)
    private String registerAddr;
    /**
     * 注册电话
     */
    @Column(length = 32)
    private String registerMobile;
    /**
     * 开户银行
     */
    @Column(length = 64)
    private String depositBank;
    /**
     * 开户账号
     */
    @Column(length = 64)
    private String depositAccount;
}
